<?php

namespace App;

use Illuminate\Database\Eloquent\Model;
use Illuminate\Database\Eloquent\SoftDeletes;

/**
 * App\Orders
 *
 * @property int $id 自增id
 * @property int $user_id 用户id
 * @property int $activity_id 活动id
 * @property string $order_num 订单编号
 * @property float $m_amount 订单原总额
 * @property float $s_amount 订单实际总额
 * @property string|null $type common:常规订单;integral:积分订单;group:团购订单;bargain:砍价订单;sign_up报名订单;
 * @property int $group_type 拼团类型 1：单独购买 2：发起拼团 3：参加拼团
 * @property int $group_refund 是否退款 0：未退款 1：已退款 2：退款失败
 * @property int $group_id 拼团id
 * @property int $invoice_id 发票信息id
 * @property string|null $express_num 配送单号
 * @property string|null $express 快递公司
 * @property float $express_fee 快递费用
 * @property string|null $express_time 发货时间
 * @property int $address_id 订单的配送地址id
 * @property int $is_pay 是否已支付，0：未支付，1：已支付
 * @property string|null $pay_time 支付时间
 * @property string|null $pay_type 支付方式，有weixin、alipay、bank
 * @property string|null $note 备注
 * @property int $status 订单状态订单状态，0：未确认，1：确认订单,待付款，2：商家已确认，待提货，3：已提货，完成，4:关闭交易
 * @property string|null $deleted_at
 * @property \Carbon\Carbon|null $created_at
 * @property \Carbon\Carbon|null $updated_at
 * @method static bool|null forceDelete()
 * @method static \Illuminate\Database\Query\Builder|\App\Orders onlyTrashed()
 * @method static bool|null restore()
 * @method static \Illuminate\Database\Eloquent\Builder|\App\Orders whereActivityId($value)
 * @method static \Illuminate\Database\Eloquent\Builder|\App\Orders whereAddressId($value)
 * @method static \Illuminate\Database\Eloquent\Builder|\App\Orders whereCreatedAt($value)
 * @method static \Illuminate\Database\Eloquent\Builder|\App\Orders whereDeletedAt($value)
 * @method static \Illuminate\Database\Eloquent\Builder|\App\Orders whereExpress($value)
 * @method static \Illuminate\Database\Eloquent\Builder|\App\Orders whereExpressFee($value)
 * @method static \Illuminate\Database\Eloquent\Builder|\App\Orders whereExpressNum($value)
 * @method static \Illuminate\Database\Eloquent\Builder|\App\Orders whereExpressTime($value)
 * @method static \Illuminate\Database\Eloquent\Builder|\App\Orders whereGroupId($value)
 * @method static \Illuminate\Database\Eloquent\Builder|\App\Orders whereGroupRefund($value)
 * @method static \Illuminate\Database\Eloquent\Builder|\App\Orders whereGroupType($value)
 * @method static \Illuminate\Database\Eloquent\Builder|\App\Orders whereId($value)
 * @method static \Illuminate\Database\Eloquent\Builder|\App\Orders whereInvoiceId($value)
 * @method static \Illuminate\Database\Eloquent\Builder|\App\Orders whereIsPay($value)
 * @method static \Illuminate\Database\Eloquent\Builder|\App\Orders whereMAmount($value)
 * @method static \Illuminate\Database\Eloquent\Builder|\App\Orders whereNote($value)
 * @method static \Illuminate\Database\Eloquent\Builder|\App\Orders whereOrderNum($value)
 * @method static \Illuminate\Database\Eloquent\Builder|\App\Orders wherePayTime($value)
 * @method static \Illuminate\Database\Eloquent\Builder|\App\Orders wherePayType($value)
 * @method static \Illuminate\Database\Eloquent\Builder|\App\Orders whereSAmount($value)
 * @method static \Illuminate\Database\Eloquent\Builder|\App\Orders whereStatus($value)
 * @method static \Illuminate\Database\Eloquent\Builder|\App\Orders whereType($value)
 * @method static \Illuminate\Database\Eloquent\Builder|\App\Orders whereUpdatedAt($value)
 * @method static \Illuminate\Database\Eloquent\Builder|\App\Orders whereUserId($value)
 * @method static \Illuminate\Database\Query\Builder|\App\Orders withTrashed()
 * @method static \Illuminate\Database\Query\Builder|\App\Orders withoutTrashed()
 * @mixin \Eloquent
 * @property string|null $pickup_code 提货码
 * @method static \Illuminate\Database\Eloquent\Builder|\App\Orders wherePickupCode($value)
 * @property int $shop_id 店铺id
 * @method static \Illuminate\Database\Eloquent\Builder|\App\Orders whereShopId($value)
 * @property int $coupon_id 使用的优惠券的id,user_coupon表
 * @method static \Illuminate\Database\Eloquent\Builder|\App\Orders whereCouponId($value)
 * @property int $b_amount 余额支付应付
 * @method static \Illuminate\Database\Eloquent\Builder|\App\Orders whereBAmount($value)
 * @property float $w_amount 微信支付应付
 * @property string $discount_note 优惠活动
 * @property float $express_fee_w 微信支付邮费
 * @property float $express_fee_b 余额支付邮费
 * @method static \Illuminate\Database\Eloquent\Builder|\App\Orders whereDiscountNote($value)
 * @method static \Illuminate\Database\Eloquent\Builder|\App\Orders whereExpressFeeB($value)
 * @method static \Illuminate\Database\Eloquent\Builder|\App\Orders whereExpressFeeW($value)
 * @method static \Illuminate\Database\Eloquent\Builder|\App\Orders whereWAmount($value)
 * @property string $vip_discount_note 会员优惠：默认空字符串，无优惠无，有优惠显示优惠
 * @method static \Illuminate\Database\Eloquent\Builder|\App\Orders whereVipDiscountNote($value)
 * @property float $vip_discount_rate 会员优惠率：默认0，历史订单无记录，有记录显示优惠率
 * @method static \Illuminate\Database\Eloquent\Builder|\App\Orders whereVipDiscountRate($value)
 * @property int $sync_time 最后同步时间
 * @property string|null $order_sn 百盛订单号
 * @property int $mc_order_status 订单状态，百盛的代码
 * @method static \Illuminate\Database\Eloquent\Builder|\App\Orders whereMcOrderStatus($value)
 * @method static \Illuminate\Database\Eloquent\Builder|\App\Orders whereOrderSn($value)
 * @method static \Illuminate\Database\Eloquent\Builder|\App\Orders whereSyncTime($value)
 */
class Orders extends Model
{
    protected $table = 'orders';
    use SoftDeletes;
}
